class Solution:
    def maximumPoints(self, enemyEnergies: list[int], currentEnergy: int) -> int:
        enemyEnergy_min = min(enemyEnergies)
        if currentEnergy < enemyEnergy_min:
            return 0
        else:
            return (currentEnergy+sum(enemyEnergies)-enemyEnergy_min)//enemyEnergy_min
        

if __name__ == '__main__':
    s = Solution()
    print(s.maximumPoints(enemyEnergies = [3,2,2], currentEnergy = 2))
    print(s.maximumPoints(enemyEnergies = [2], currentEnergy = 10))